package com.hsylient.javase.chapter05;

import lombok.SneakyThrows;
import org.junit.Test;

import java.io.File;
import java.util.Arrays;

public class A_MyFile {

    @Test
    @SneakyThrows
    public void testFile() {
        File file = new File("D:/log");
        if (file.exists()) {
            System.out.println(Arrays.toString(file.listFiles()));
        }
    }
}
